package com.jiuwan.gamepass.dao.authDao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jiuwan.gamepass.pojo.authPojo.SysApi;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface SysApiDao extends BaseMapper<SysApi> {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(SysApi record);

    int updateByPrimaryKeySelective(SysApi record);

    int updateByPrimaryKey(SysApi record);

    //查询所有的相关角色api
    List<SysApi> selectAllById (int id);

    //添加api
    int insert(SysApi record);

    //删除某个角色的相关api
    int deleteByIdAndUrl (String id ,String url);

   // IPage<SysApi> selectPageVo();
}